<?php
/**
 * Created by PhpStorm.
 * User: zyh
 * Date: 2018/5/9
 * Time: 上午9:59
 */

namespace app\admin\controller;


use think\Controller;
use think\Session;

class Base extends Controller
{
    public function __construct()
    {
        parent::__construct();
        if (!Session::get('admin_login')){
            $this->redirect("admin/auth/login");
        }
    }
}